package com.csw.android.dev_utils.log

import android.graphics.Point
import com.csw.android.dev_utils.ex.JsonEx.parseJsonObject
import com.csw.android.dev_utils.ex.JsonEx.toJsonString
import com.csw.android.dev_utils.utils.SharedPreferencesUtils

object LogOperation : SharedPreferencesUtils.BaseOperation("dev_utils_log") {

    fun saveFloatWindowOffset(offset: Point?) {
        putString("FloatWindowOffset", offset.toJsonString())
    }

    fun getFloatWindowOffset(): Point? {
        return getString("FloatWindowOffset")?.parseJsonObject()
    }
}